package top.noteday.provider;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

//@Component
//@FeignClient(value = "kalimdor-apiImpl", path = "/backstage/version", contextId="versionService")//, url="http://127.0.0.1:18085"
@FeignClient(value = "kalimdor-apiImpl", path = "/backstage/version", contextId="versionService")
public interface VersionService {

    @GetMapping(value = "/url")
    String getUrl(@RequestParam("obj") Object obj);

    @PostMapping(value = "/post")
    String demoPost(@RequestBody Map<String, String> map);
}
